<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/reset.css">
    <style>
        p {
            width: 100px;
            height: 30px;
            background-color: #ddd;

            /* 溢出 */
            /* visible 可见的 --- 默认值 */
            /* overflow: visible; */
            /* hidden 隐藏 */
            /* overflow: hidden; */
            /* scroll 滚动 */
            /* overflow: scroll; */
            /* overflow-y: scroll; */
            /* overflow-x: scroll; */

            /* overflow-x: hidden;
            overflow-y: scroll; */

            /* 如果超出就出现滚动条，没有超出就没有滚动条 */
            overflow: auto;
        }
    </style>
</head>

<body>

    <p>啊啊啊啊啊啊啊啊啊啊啊啊啊啊三生三世111111111111111111111111111111111111</p>
    <div>1111111111111</div>

</body>

</html>